//
// Created by LiuYou on 2021/5/12.
//

#include "Book.hpp"

#include <utility>

Book::Book() = default;

Book::Book(std::string name, std::string author) : name(std::move(name)), author(std::move(author)) {}

std::ostream& operator<<(std::ostream& os, const Book& book) {
    os << "name: " << book.name << " author: " << book.author;
    return os;
}

void Book::setName(const std::string& name) {
    Book::name = name;
}

void Book::setAuthor(const std::string& author) {
    Book::author = author;
}

Book::~Book() = default;
